package finalproject.model.studies;

/**
 * Class representing a session
 * @author user
 *
 */
public abstract class Seance {

	/**
	 * The session title
	 */
	private String title;
	/**
	 * The session topic
	 */
	private Topic topic;

	/**
	 * @param title the session's title
	 * @param topic the session's topic
	 */
	public Seance(String title, Topic topic)
	{
		this.title = title;
		this.topic = topic;
	}
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the topic
	 */
	public Topic getTopic() {
		return topic;
	}

	/**
	 * @param topic the topic to set
	 */
	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	@Override
	public int hashCode() 
	{
		return title.hashCode() + topic.hashCode();
	}
}
